package cn.tedu.medicalappointmentsystemk.dao.persist.mapper;

import cn.tedu.medicalappointmentsystemk.pojo.bo.PatientSelectBO;
import cn.tedu.medicalappointmentsystemk.pojo.po.PatientPO;
import cn.tedu.medicalappointmentsystemk.pojo.vo.PatientUpdateVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface PatientMapper extends BaseMapper<PatientPO> {

    Page<PatientSelectBO> select();

    Integer update(PatientUpdateVO vo);

    Page<PatientSelectBO> searchLastWeek();

    Page<PatientSelectBO> searchLastMonth();

    Page<PatientSelectBO> searchToday();

    List<PatientSelectBO> selectByName(String nickname);
}
